﻿using System.Collections.Generic;

namespace SIGBugs.Server
{
    public class Config

    {

        public static IEnumerable<IdentityServer4.Models.Client> GetClients()

        {

            List<IdentityServer4.Models.Client> clients = new List<IdentityServer4.Models.Client>
            {
                //Client1

                new IdentityServer4.Models.Client()
                {

                    ClientId = "Client1",

                    AllowedGrantTypes = GrantTypes.ClientCredentials,
                    ClientSecrets =
                    {
                        new Secret("secret".Sha256())
                    }
                }
            };
            return clients;

        }
        //Defining the InMemory API's
        public static IEnumerable<ApiResource> GetApiResources()
        {
            List<ApiResource> apiResources = new List<ApiResource>();

            apiResources.Add(new ApiResource("api1", "First API"));

            return apiResources;
        }
    }
}
